﻿using SqlSugar;
using YJ_Core.Entities.Utils;

namespace YJ_Core.Entities.Common
{
    /// <summary>
    /// 菜单配置实体
    /// </summary>
    public class Menus : BaseEntities
    {
        /// <summary>
        /// 菜单id
        /// </summary>
        [SugarColumn(Length = 32)]
        public int Id { get; set; }

        /// <summary>
        /// 级别
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// 上级id
        /// </summary>
        public int ParentId { get; set; }

        /// <summary>
        /// 路由名称
        /// </summary>
        [SugarColumn(Length = 32)]
        public string Name { get; set; }

        /// <summary>
        /// 路径
        /// </summary>
        [SugarColumn(Length = 64)]
        public string Path { get; set; }

        /// <summary>
        /// 图标
        /// </summary>
        [SugarColumn(Length = 512)]
        public string Icon { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }

        /// <summary>
        /// 是否启用
        /// </summary>
        public bool EnableMark { get; set; }
    }
}
